To find Prime Numbers between 1 and 100
The Sieve of Eratosthenes is a highly efficient algorithm for finding all prime numbers up to a given number N. Instead of checking each number individually, it eliminates multiples of primes systematically, reducing unnecessary calculations. The algorithm runs in O(N log log N) time, making it much faster than basic methods like trial division.